package com.hehao.java_basic.design_mode.structural.decorator;

import org.junit.Test;

/**
 * @author Damon
 * @date 2023/10/29/22:18
 */
public class Client {
    public static void main(String[] args) {
        GeelyCar geelyCar = new GeelyCar();
        System.out.println(geelyCar.getNames());
        System.out.println(geelyCar.getPrice());
        System.out.println();

        Camera camera = new Camera(geelyCar);
        System.out.println(camera.getNames());
        System.out.println(camera.getPrice());
        System.out.println();

        CarMat carMat = new CarMat(camera);
        System.out.println(carMat.getNames());
        System.out.println(carMat.getPrice());
    }
}
